<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
		<script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.config.js"></script>
		<script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.all.js"></script>
		<title>大波文章</title>
	</head>
	<body>

		 <script type="text/javascript" charset="utf-8">
			window.UEDITOR_HOME_URL = "/static/ueditor/";
			window.onload=function(){
				window.UEDITOR_CONFIG.initialFrameHeight=300;//编辑器的高度
			   	window.UEDITOR_CONFIG.initialFrameWidth=800;//编辑器的宽度
			   	var editor = new UE.ui.Editor({
					imageUrl : '/Editor/uploadImage',
					fileUrl : '/Editor/uploadFile',
					imagePath : '',
					filePath : '',
					imageManagerUrl:'/Editor/imageManage', //图片在线管理的处理地址
					imageManagerPath:'/'
				});
				editor.render("article_content");
			}
		</script>


		<div id=""><a href="/admin/write/">写文章</a></div>
		
		<div id=""><a href="/admin/manage/">管理</a></div>
			<form action="<?php echo U('admin/write/add');?>" method="post"> 
				<div id=""><textarea id="article_content" name="article_content"></textarea></div>
					<div>
						<div>
							<p>
								<label>分类</label>
								<select id="arcitle_type" name="article_type">
									<option value="0">大波日记</option>
									<option value="1">大波杂谈</option>
									<option value="2">大波隐私</option>
								</select>
							</p>
						</div>
						<div>
							<input type="submit" value="发表" id="submit">
							<button><span>取消</span></button>
						</div>
					</div>
			</form>
	</body>
</html>